import request from '@/utils/request'

export function selectParentTreeItem(params) {
  return request({
    url: '/deductionitem/selectParentTreeItem',
    method: 'POST',
    data: params
  })
}

export function selectSonTreeItem(params) {
  return request({
    url: '/deductionitem/selectSonTreeItem',
    method: 'POST',
    data: params
  })
}

export function selectRuleItem(params) {
  return request({
    url: '/deductionitem/selectRuleItem',
    method: 'POST',
    data: params
  })
}

export function deleteParentTreeItem(params) {
  return request({
    url: '/deductionitem/deleteParentTreeItem',
    method: 'POST',
    data: params
  })
}

export function deleteSonTreeItem(params) {
  return request({
    url: '/deductionitem/deleteSonTreeItem',
    method: 'POST',
    data: params
  })
}

export function deleteRuleItem(params) {
  return request({
    url: '/deductionitem/deleteRuleItem',
    method: 'POST',
    data: params
  })
}

export function getDeductionPart(params) {
  return request({
    url: '/deductionitem/getDeductionPart',
    method: 'POST',
    data: params
  })
}

export function insertParentTreeItem(params) {
  return request({
    url: '/deductionitem/insertParentTreeItem',
    method: 'POST',
    data: params
  })
}

export function updateParentTreeItem(params) {
  return request({
    url: '/deductionitem/updateParentTreeItem',
    method: 'POST',
    data: params
  })
}

export function insertSonTreeItem(params) {
  return request({
    url: '/deductionitem/insertSonTreeItem',
    method: 'POST',
    data: params
  })
}

export function updateSonTreeItem(params) {
  return request({
    url: '/deductionitem/updateSonTreeItem',
    method: 'POST',
    data: params
  })
}

export function insertRuleItem(params) {
  return request({
    url: '/deductionitem/insertRuleItem',
    method: 'POST',
    data: params
  })
}

export function updateRuleItem(params) {
  return request({
    url: '/deductionitem/updateRuleItem',
    method: 'POST',
    data: params
  })
}
